package com.mwh.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class Service1 {
    @Value("优酸乳")
    private String name;
    @Value("20")
    private int age;
    @Value("男")
    private String sex;


    @Override
    public String toString() {
        return "Service{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }


//        public void test() {
//            System.out.println("Service1的test()方法执行了。。。");
//
//    }
//
}
